<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Ok</title>
    <style>
        div{
            margin: 20px auto;
            width: 500px;
        }
    </style>
</head>
<body>
<div>
    <h2>恭喜您，支付成功</h2>
    <span id="jumpTo">10</span>秒后自动返回首页
    <p><button>立即返回</button></p>
</div>
<script>
    window.onload=function () {
        let timer=10;
        setInterval(()=>{
            timer--;
            document.getElementById('jumpTo').innerText=timer;
            if (timer == 0) {
                location.href = './countdown.html';
            }
        },1000)
    }
</script>
</body>
</html>